﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JMailT.GMail
{
    public class Pop3Result
    {
        /// <summary>
        /// 是否成功执行
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 来自服务器的数据
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 异常信息
        /// </summary>
        public Exception FaultException { get; set; }

        public Pop3Result(string message)
        {
            IsSuccess = true;
            Message = message;
        }

        public Pop3Result(Exception exception)
        {
            FaultException = exception;
        }
    }
}
